home *** CD-ROM | disk | FTP | other *** search
/ GameSpot.it / GameSpot Italia (2001).bin / demo / severancedemo / data1.cab / Program_Files / Maps / Ragnar_M2 / Enemigos.py < prev    next >
Text File  |  2000-10-13  |  18KB  |  602 lines

  1. from math import pow
  2. import EnemyTypes
  3. """
  4. import SleepingKnights
  5. import TalkingKnights
  6. import BurningKnights
  7. """
  8.  
  9. execfile("SleepingKnights.py")
  10. execfile("TalkingKnights.py")
  11. #execfile("BurningKnights.py")
  12.  
  13. import Sparks
  14. import Actions
  15. import darfuncs
  16. import Bladex
  17. import Breakings
  18. import pocimac
  19. import AniSound
  20.  
  21.  
  22. ## Cositas in catacombs
  23.  
  24. pers=Bladex.CreateEntity("1cos","Cos",-152468.216339, 13251.5, 46106.5728533,"Person")
  25. pers.Angle=1.49589570635
  26. pers.Level=0
  27. pers.ActionAreaMin=pow(2,0)
  28. pers.ActionAreaMax=pow(2,1)
  29. EnemyTypes.EnemyDefaultFuncs(pers)
  30. darfuncs.HideBadGuy("1cos")
  31. pers.SetOnFloor()
  32.  
  33. pers=Bladex.CreateEntity("2cos","Cos",-156262.592877, 12776.0072536, 44434.5921197,"Person")
  34. pers.Angle=5.75
  35. pers.Level=0
  36. pers.ActionAreaMin=pow(2,0)
  37. pers.ActionAreaMax=pow(2,1)
  38. EnemyTypes.EnemyDefaultFuncs(pers)
  39. darfuncs.HideBadGuy("2cos")
  40. pers.SetOnFloor()
  41.  
  42.  
  43. pers=Bladex.CreateEntity("4cos","Cos",-149074.713201, 7465.63351556, 26185.7401127,"Person")
  44. pers.Angle=0.547243850511
  45. pers.Level=0
  46. pers.ActionAreaMin=pow(2,0)
  47. pers.ActionAreaMax=pow(2,1)
  48. EnemyTypes.EnemyDefaultFuncs(pers)
  49. pers.SetOnFloor()
  50. darfuncs.HideBadGuy("4cos")
  51.  
  52.  
  53. sencos=Bladex.GetSector(-136750,15000,69550)
  54. sencos.OnEnter=ApareceCosita
  55.  
  56.  
  57.  
  58.  
  59. ## Cositas in las segundas alcantarillas
  60.  
  61. pers=Bladex.CreateEntity("1cos1","Cos",-91400,2300,49600,"Person")
  62. pers.Angle=1.49589570635
  63. pers.Level=0
  64. pers.ActionAreaMin=pow(2,0)
  65. pers.ActionAreaMax=pow(2,1)
  66. EnemyTypes.EnemyDefaultFuncs(pers)
  67. pers.SetOnFloor()
  68. darfuncs.HideBadGuy("1cos1")
  69.  
  70. pers=Bladex.CreateEntity("2cos2","Cos",-92400,2300,47400,"Person")
  71. pers.Angle=5.75
  72. pers.Level=1
  73. pers.ActionAreaMin=pow(2,0)
  74. pers.ActionAreaMax=pow(2,1)
  75. EnemyTypes.EnemyDefaultFuncs(pers)
  76. pers.SetOnFloor()
  77. darfuncs.HideBadGuy("2cos2")
  78.  
  79. pers=Bladex.CreateEntity("3cos3","Cos",-97900,2300,48200,"Person")
  80. pers.Angle=0.0532455606238
  81. pers.Level=1
  82. pers.ActionAreaMin=pow(2,0)
  83. pers.ActionAreaMax=pow(2,1)
  84. EnemyTypes.EnemyDefaultFuncs(pers)
  85. pers.SetOnFloor()
  86. darfuncs.HideBadGuy("3cos3")
  87.  
  88.  
  89. sencos2=Bladex.GetSector(-114394, 3885, 49000)
  90. sencos2.OnEnter=ApareceCosita2
  91.  
  92.  
  93.  
  94.  
  95.  
  96. #caballero traidor 3, estßtico en almacΘn junto alcantarillas
  97.  
  98. Gladius=Bladex.CreateEntity("RagnarGladius3","Gladius",0,0,0,"Weapon")
  99. ItemTypes.ItemDefaultFuncs(Gladius)
  100. escudo=Bladex.CreateEntity("RagnarEsc3kgt","Escudo5",0,0,0)
  101. ItemTypes.ItemDefaultFuncs(escudo)
  102.  
  103.  
  104. pers=Bladex.CreateEntity("3kngt","Knight_Traitor",-126000,750,48000,"Person")
  105. pers.Angle=1.5
  106. pers.Level=0
  107. pers.ActionAreaMin=pow(2,2)
  108. pers.ActionAreaMax=pow(2,3)
  109. EnemyTypes.EnemyDefaultFuncs(pers)
  110. Actions.TakeObject(pers.Name,"RagnarGladius3")
  111. Actions.TakeObject(pers.Name,"RagnarEsc3kgt")
  112. pers.SetOnFloor()
  113.  
  114. #AniSound.AsignarSonidosCaballeroTraidor('3kngt')
  115.  
  116.  
  117. #####################################
  118. #####################################CABALLERO EN KOMEDOR tiene la llaveeeeeeee
  119.  
  120. Gladius=Bladex.CreateEntity("RagnarGladiusKOM","Gladius",0,0,0,"Weapon")
  121. ItemTypes.ItemDefaultFuncs(Gladius)
  122. escudo=Bladex.CreateEntity("RagnarEscudoKOM","Escudo5",0,0,0)
  123. ItemTypes.ItemDefaultFuncs(escudo)
  124.  
  125. pers=Bladex.CreateEntity("KOMkngt","Knight_Traitor",-81406.529435, -6366.32180405, 45316.01156,"Person")
  126. pers.Angle=5.8640284647
  127. pers.Level=1
  128. pers.ActionAreaMin=pow(2,4)
  129. pers.ActionAreaMax=pow(2,5)
  130. EnemyTypes.EnemyDefaultFuncs(pers)
  131. pers.SetOnFloor()
  132. #pers.Data.JoinGroup(pers.Name, "KOMEDOR")
  133. Actions.TakeObject(pers.Name,"RagnarGladiusKOM")
  134. Actions.TakeObject(pers.Name,"RagnarEscudoKOM")
  135. Actions.TakeObject("KOMkngt","llave45")
  136.  
  137. darfuncs.HideBadGuy("KOMkngt")
  138.  
  139.  
  140. senkom=Bladex.GetSector(-74000,-5000,51500)
  141. senkom.OnEnter=ApareceKOMkngt
  142.  
  143.  
  144.  
  145.  
  146. N_KT_Patio = 2
  147.  
  148.  
  149. #####Caballeros traidores 4 y 5 patrullando en patio exterior junto a lampara colgante
  150.  
  151. ##caballero 5b - LIDERRRR
  152.  
  153. Gladius=Bladex.CreateEntity("RagnarGladius5b","Gladius",0,0,0,"Weapon")
  154. ItemTypes.ItemDefaultFuncs(Gladius)
  155. escudo=Bladex.CreateEntity("RagnarEscudo2b","Escudo5",0,0,0)
  156. ItemTypes.ItemDefaultFuncs(escudo)
  157.  
  158.  
  159. pers=Bladex.CreateEntity("5bkngt","Knight_Traitor",-113145.903704, -6101.25270551, 43379.6814897,"Person")
  160. pers.Angle=6.0587611088
  161.  
  162. pers.Level=0
  163. pers.ActionAreaMin=pow(2,2)
  164. pers.ActionAreaMax=pow(2,3)
  165. EnemyTypes.EnemyDefaultFuncs(pers)
  166. pers.SetOnFloor()
  167. pers.Data.JoinGroup(pers.Name, "patio exterior junto a lampara colgante")
  168. Actions.TakeObject(pers.Name,"RagnarGladius5b")
  169. Actions.TakeObject(pers.Name,"RagnarEscudo2b")
  170. pers.Data.DefImDeadFunc = pers.ImDeadFunc
  171. pers.ImDeadFunc = Muere_KT_Patio
  172.  
  173. darfuncs.HideBadGuy("5bkngt")
  174.  
  175. #AniSound.AsignarSonidosCaballeroTraidor(pers.Name)
  176.  
  177. ##caballero 4
  178.  
  179. Gladius=Bladex.CreateEntity("RagnarGladius4","Gladius",0,0,0,"Weapon")
  180. ItemTypes.ItemDefaultFuncs(Gladius)
  181. escudo=Bladex.CreateEntity("RagnarEscudo1","Escudo5",0,0,0)
  182. ItemTypes.ItemDefaultFuncs(escudo)
  183. potion=Bladex.CreateEntity("4kngtsPotion","Pocima25",0,0,0)
  184. potion.Static=0
  185. potion.Solid=0
  186. potion.Scale=1.220190
  187. pocimac.CreatePotion("4kngtsPotion")
  188.  
  189.  
  190.  
  191. pers=Bladex.CreateEntity("4kngt","Knight_Traitor",-107683.183349, -6077.11016841, 49451.1265,"Person")
  192. pers.Angle=4.7
  193. pers.Level=1
  194. pers.ActionAreaMin=pow(2,2)
  195. pers.ActionAreaMax=pow(2,3)
  196. EnemyTypes.EnemyDefaultFuncs(pers)
  197. pers.SetOnFloor()
  198. pers.Data.JoinGroup(pers.Name, "patio exterior junto a lampara colgante")
  199. Actions.TakeObject(pers.Name,"RagnarGladius4")
  200. Actions.TakeObject(pers.Name,"RagnarEscudo1")
  201. Actions.TakeObject(pers.Name,"4kngtsPotion")
  202. #AniSound.AsignarSonidosCaballeroTraidor(pers.Name)
  203. pers.Data.DefImDeadFunc = pers.ImDeadFunc
  204. pers.ImDeadFunc = Muere_KT_Patio
  205.  
  206. #darfuncs.HideBadGuy("4kngt")
  207.  
  208.  
  209.  
  210.  
  211.  
  212. #pers.AddBayPoint=-107683.183349, -6077.11016841, 49451.1265
  213. #pers.AddBayPoint=-96226.4351292, -6053.59308429, 48277.7423
  214. #pers.AddBayPoint=-94717.3697911, -6049.38559077, 49798.6649
  215. #pers.AddBayPoint=-95679.7741666, -6058.90268095, 51917.0940
  216. #pers.AddBayPoint=-114498.969415, -6058.75582126, 52012.824
  217. #pers.AddBayPoint=-115453.59665, -6051.82273262, 50318.73902
  218.  
  219. ##caballero 5
  220.  
  221. Gladius=Bladex.CreateEntity("RagnarGladius5","Gladius",0,0,0,"Weapon")
  222. ItemTypes.ItemDefaultFuncs(Gladius)
  223. escudo=Bladex.CreateEntity("RagnarEscudo2","Escudo5",0,0,0)
  224. ItemTypes.ItemDefaultFuncs(escudo)
  225.  
  226.  
  227.  
  228. pers=Bladex.CreateEntity("5kngt","Knight_Traitor",-100566.188266, -6067.36205855, 59148.9432,"Person")
  229. pers.Angle=1.57997371669
  230. pers.Level=0
  231. pers.ActionAreaMin=pow(2,2)
  232. pers.ActionAreaMax=pow(2,3)
  233. EnemyTypes.EnemyDefaultFuncs(pers)
  234. pers.SetOnFloor()
  235. pers.Data.JoinGroup(pers.Name, "patio exterior junto a lampara colgante")
  236. Actions.TakeObject(pers.Name,"RagnarGladius5")
  237. Actions.TakeObject(pers.Name,"RagnarEscudo2")
  238. pers.Data.DefImDeadFunc = pers.ImDeadFunc
  239. pers.ImDeadFunc = Muere_KT_Patio
  240.  
  241. #darfuncs.HideBadGuy("5kngt")
  242.  
  243. #AniSound.AsignarSonidosCaballeroTraidor(pers.Name)
  244.  
  245. #pers.AddBayPoint=-100566.188266, -6067.36205855, 59148.9432
  246. #pers.AddBayPoint=-111756.127044, -6068.32319228, 58923.9618
  247. #pers.AddBayPoint=-113471.66198, -6064.17610447, 57494.56409
  248. #pers.AddBayPoint=-112021.565462, -6070.20153086, 54231.8774
  249. #pers.AddBayPoint=-103850.687769, -6062.51438425, 54651.9083
  250. #pers.AddBayPoint=-94405.6017274, -6081.74545861, 54816.7771
  251. #pers.AddBayPoint=-93416.6204042, -6046.50176579, 56577.2626
  252. #pers.AddBayPoint=-94659.8540291, -6067.09109463, 58436.6521
  253.  
  254.  
  255. sen4kngt=Bladex.GetSector(-80687.1221719, -7359.35871655, 62703.5401247)
  256. sen4kngt.OnEnter=Aparece4kngt
  257.  
  258. #####################################cabakkero detras de la puerta del patio
  259.  
  260. #caballero tres1
  261.  
  262. Gladius=Bladex.CreateEntity("RagnarGladiustres1","Gladius",0,0,0,"Weapon")
  263. ItemTypes.ItemDefaultFuncs(Gladius)
  264. escudo=Bladex.CreateEntity("RagnarEscudotres1","Escudo2",0,0,0)
  265. ItemTypes.ItemDefaultFuncs(escudo)
  266.  
  267. pers=Bladex.CreateEntity("tres1kngt","Knight_Traitor",-124976.265294, -6012.03293651, 47583.049,"Person")
  268. pers.Angle=4.34
  269. pers.Level=2
  270. pers.ActionAreaMin=pow(2,2)
  271. pers.ActionAreaMax=pow(2,3)
  272. EnemyTypes.EnemyDefaultFuncs(pers)
  273. pers.SetOnFloor()
  274. #pers.Data.JoinGroup(pers.Name, "tras puente levadizo")
  275. Actions.TakeObject(pers.Name,"RagnarGladiustres1")
  276. Actions.TakeObject(pers.Name,"RagnarEscudotres1")
  277. pers.Blind = 1
  278. pers.Deaf = 1
  279.  
  280.  
  281. ###talkingknights.py
  282.  
  283. ##FUNCION QUE HACE DESAPARECER LOS ENEMIGOS HASTA EL patio con los tres caballeros
  284.  
  285.  
  286. sendes1=Bladex.GetSector(-122552.583148, -6321.28490453, 48176.4895)
  287. sendes1.OnEnter=Desaparecen1
  288.  
  289.  
  290. ###########################
  291. ##########PATRULLANDO EN LA MURALLA DE LA TORRE OCTOGONAL
  292. ###########################
  293.  
  294. #caballero JUNTO A LA PALANCA1
  295.  
  296. Gladius=Bladex.CreateEntity("RagnarGladius330","Gladius",0,0,0,"Weapon")
  297. ItemTypes.ItemDefaultFuncs(Gladius)
  298. escudo=Bladex.CreateEntity("RagnarEscudo330","Escudo2",0,0,0)
  299. ItemTypes.ItemDefaultFuncs(escudo)
  300.  
  301. pers=Bladex.CreateEntity("330kngt","Knight_Traitor",-96619, -9256, -54029,"Person")
  302. pers.Angle=5.68
  303. pers.Level=2
  304. pers.ActionAreaMin=pow(2,8)
  305. pers.ActionAreaMax=pow(2,9)
  306. EnemyTypes.EnemyDefaultFuncs(pers)
  307. pers.SetOnFloor()
  308. #pers.Data.JoinGroup(pers.Name, "tras puente levadizo")
  309. Actions.TakeObject(pers.Name,"RagnarGladius330")
  310. Actions.TakeObject(pers.Name,"RagnarEscudo330")
  311.  
  312.  
  313. #caballero JUNTO A LA PALANCA2
  314.  
  315. Gladius=Bladex.CreateEntity("RagnarGladius331","Gladius",0,0,0,"Weapon")
  316. ItemTypes.ItemDefaultFuncs(Gladius)
  317. escudo=Bladex.CreateEntity("RagnarEscudo331","Escudo2",0,0,0)
  318. ItemTypes.ItemDefaultFuncs(escudo)
  319.  
  320. pers=Bladex.CreateEntity("331kngt","Knight_Traitor",-117500, -8770, -47850,"Person")
  321. pers.Angle=0.73
  322. pers.Level=2
  323. pers.ActionAreaMin=pow(2,10)
  324. pers.ActionAreaMax=pow(2,11)
  325. EnemyTypes.EnemyDefaultFuncs(pers)
  326. pers.SetOnFloor()
  327. #pers.Data.JoinGroup(pers.Name, "tras puente levadizo")
  328. Actions.TakeObject(pers.Name,"RagnarGladius331")
  329. Actions.TakeObject(pers.Name,"RagnarEscudo331")
  330.  
  331. #pers.AddBayPoint=-117500, -8770, -47850
  332. #pers.AddBayPoint=-120050, -8770, -36950
  333. #pers.AddBayPoint=-123300, -8770, -10950
  334. #pers.AddBayPoint=-121350, -8770, -4100
  335. #pers.AddBayPoint=-123300, -8770, -10950
  336. #pers.AddBayPoint=-120050, -8770, -36950
  337.  
  338.  
  339.  
  340. #caballeros traidores en patio del puente levadizo
  341.  
  342. #caballero 15
  343.  
  344. Gladius=Bladex.CreateEntity("RagnarGladius15","Alabarda",0,0,0,"Weapon")
  345. ItemTypes.ItemDefaultFuncs(Gladius)
  346. escudo=Bladex.CreateEntity("RagnarEscudo15","Escudo2",0,0,0)
  347. ItemTypes.ItemDefaultFuncs(escudo)
  348. potion=Bladex.CreateEntity("15kngtsPotion","Pocima100",0,0,0)
  349. potion.Static=0
  350. potion.Solid=0
  351. potion.Scale=1.220190
  352. pocimac.CreatePotion("15kngtsPotion")
  353.  
  354. pers=Bladex.CreateEntity("15kngt","Knight_Traitor",-96000,0,-29000,"Person")
  355. pers.Angle=1.5
  356. pers.Level=1
  357. pers.ActionAreaMin=pow(2,2)
  358. pers.ActionAreaMax=pow(2,3)
  359. EnemyTypes.EnemyDefaultFuncs(pers)
  360. pers.SetOnFloor()
  361. pers.Data.JoinGroup(pers.Name, "patio del puente levadizo")
  362. Actions.TakeObject(pers.Name,"RagnarGladius15")
  363. Actions.TakeObject(pers.Name,"RagnarEscudo15")
  364. Actions.TakeObject(pers.Name,"15kngtsPotion")
  365.  
  366.  
  367. #pers.AddBayPoint=-96000,0,-29000
  368. #pers.AddBayPoint=-96000,0,-14000
  369. #pers.AddBayPoint=-114000,0,-14000
  370. #pers.AddBayPoint=-114000,0,-29000
  371.  
  372.  
  373. #caballero 16
  374.  
  375. Gladius=Bladex.CreateEntity("RagnarGladius16","Alabarda",0,0,0,"Weapon")
  376. ItemTypes.ItemDefaultFuncs(Gladius)
  377. escudo=Bladex.CreateEntity("RagnarEscudo16","Escudo5",0,0,0)
  378. ItemTypes.ItemDefaultFuncs(escudo)
  379.  
  380. pers=Bladex.CreateEntity("16kngt","Knight_Traitor",-99000,1000,-26000,"Person")
  381. pers.Angle=1.5
  382. pers.Level=1
  383. pers.ActionAreaMin=pow(2,2)
  384. pers.ActionAreaMax=pow(2,3)
  385. EnemyTypes.EnemyDefaultFuncs(pers)
  386. pers.SetOnFloor()
  387. pers.Data.JoinGroup(pers.Name, "patio del puente levadizo")
  388. Actions.TakeObject(pers.Name,"RagnarGladius16")
  389. Actions.TakeObject(pers.Name,"RagnarEscudo16")
  390.  
  391.  
  392. #pers.AddBayPoint=-99000,1000,-26000
  393. #pers.AddBayPoint=-110000,1000,-26000
  394. #pers.AddBayPoint=-110000,1000,-17000
  395. #pers.AddBayPoint=-99000,1000,-17000
  396.  
  397.  
  398.  
  399. #caballero 18c
  400. ############
  401. ############## TIENE LLAVEEEEEEEEEEE
  402.  
  403.  
  404. Gladius=Bladex.CreateEntity("RagnarGladius18c","Gladius",0,0,0,"Weapon")
  405. ItemTypes.ItemDefaultFuncs(Gladius)
  406. escudo=Bladex.CreateEntity("RagnarEsc18ckgt","Escudo5",0,0,0)
  407. ItemTypes.ItemDefaultFuncs(escudo)
  408.  
  409. pers=Bladex.CreateEntity("18ckngt","Knight_Traitor",-103955.812202, 940.318380757, -51576.249,"Person")
  410. pers.Angle=5.94
  411. pers.Level=2
  412. pers.ActionAreaMin=pow(2,2)
  413. pers.ActionAreaMax=pow(2,3)
  414. EnemyTypes.EnemyDefaultFuncs(pers)
  415. pers.SetOnFloor()
  416. pers.Data.JoinGroup(pers.Name, "torre octogonal mayor")
  417. Actions.TakeObject(pers.Name,"RagnarGladius18c")
  418. Actions.TakeObject(pers.Name,"RagnarEsc18ckgt")
  419. Actions.TakeObject("18ckngt","llave7")
  420.  
  421.  
  422. #pers.AddBayPoint=-103955.812202, 940.318380757, -51576.249
  423. #pers.AddBayPoint=-100643.252321, 941.300902582, -45716.470
  424. #pers.AddBayPoint=-96090.5980977, 1188.18925463, -38375.869
  425. #pers.AddBayPoint=-91374.5634457, 1689.17567429, -36075.81
  426. #pers.AddBayPoint=-87601.3706975, 1936.87386403, -37286.6021836
  427. #pers.AddBayPoint=-86245.2031582, 1940.5974571, -34810.585852
  428. #pers.AddBayPoint=-88266.0644168, 1940.9119521, -34463.073
  429. #pers.AddBayPoint=-93594.0423325, 1443.23164697, -35332.19
  430. #pers.AddBayPoint=-98987.3411629, 944.843725714, -39171.98
  431. #pers.AddBayPoint=-103547.369257, 940.573928319, -40855.110
  432. #pers.AddBayPoint=-106835.543871, 941.928612783, -44580.275
  433. #pers.AddBayPoint=-105783.946296, 943.44901424, -49079.8062
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444. #caballeros traidores tras puente levadizo
  445.  
  446.  
  447. #caballero 22  TIENE LLAVEEEEEEEEEEE la que abre la puerta del primer piso de la torre de Ragnar.
  448.  
  449. Gladius=Bladex.CreateEntity("RagnarGladius22","Garrote",0,0,0,"Weapon")
  450. ItemTypes.ItemDefaultFuncs(Gladius)
  451. escudo=Bladex.CreateEntity("RagnarEscudo22","Escudo2",0,0,0)
  452. ItemTypes.ItemDefaultFuncs(escudo)
  453.  
  454. pers=Bladex.CreateEntity("22kngt","Knight_Traitor",-131000,-600,-106000,"Person")
  455. pers.Angle=5.1
  456. pers.Level=2
  457. pers.ActionAreaMin=pow(2,0)
  458. pers.ActionAreaMax=pow(2,1)
  459. EnemyTypes.EnemyDefaultFuncs(pers)
  460. pers.Data.JoinGroup(pers.Name, "tras puente levadizo")
  461. Actions.TakeObject(pers.Name,"RagnarGladius22")
  462. Actions.TakeObject(pers.Name,"RagnarEscudo22")
  463. Actions.TakeObject("22kngt","llave69")
  464. #Actions.TakeObject(pers.Name,"22kngtsPotion")
  465. pers.SetOnFloor()
  466. darfuncs.HideBadGuy("22kngt")
  467.  
  468.  
  469. #caballero 23
  470.  
  471. Gladius=Bladex.CreateEntity("RagnarGladius23","Garrote",0,0,0,"Weapon")
  472. ItemTypes.ItemDefaultFuncs(Gladius)
  473. escudo=Bladex.CreateEntity("RagnarEscudo23","Escudo5",0,0,0)
  474. ItemTypes.ItemDefaultFuncs(escudo)
  475.  
  476. pers=Bladex.CreateEntity("23kngt","Knight_Traitor",-127000,1000,-98000,"Person")
  477. pers.Angle=5.1
  478. pers.Level=1
  479. pers.ActionAreaMin=pow(2,0)
  480. pers.ActionAreaMax=pow(2,1)
  481. EnemyTypes.EnemyDefaultFuncs(pers)
  482. pers.Data.JoinGroup(pers.Name, "tras puente levadizo")
  483. Actions.TakeObject(pers.Name,"RagnarGladius23")
  484. Actions.TakeObject(pers.Name,"RagnarEscudo23")
  485. pers.SetOnFloor()
  486. darfuncs.HideBadGuy("23kngt")
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495. #################################
  496. #################################
  497. ##########ENEMIGOS NUEVOS DESPUES DE LA REVISION
  498. #################################
  499.  
  500. ################CERCA DE LA POWER POTION
  501. #caballero 24
  502.  
  503. Gladius=Bladex.CreateEntity("RagnarGladius224","Garrote",0,0,0,"Weapon")
  504. ItemTypes.ItemDefaultFuncs(Gladius)
  505. escudo=Bladex.CreateEntity("RagnarEscudo224","Escudo5",0,0,0)
  506. ItemTypes.ItemDefaultFuncs(escudo)
  507.  
  508. pers=Bladex.CreateEntity("224kngt","Knight_Traitor",-92530.5290154, 1238.66888474, -104170.3271,"Person")
  509. pers.Angle=3.6
  510. pers.Level=2
  511. pers.ActionAreaMin=pow(2,2)
  512. pers.ActionAreaMax=pow(2,3)
  513. EnemyTypes.EnemyDefaultFuncs(pers)
  514. #pers.Data.JoinGroup(pers.Name, "tras puente levadizo")
  515. Actions.TakeObject(pers.Name,"RagnarGladius224")
  516. Actions.TakeObject(pers.Name,"RagnarEscudo224")
  517. pers.SetOnFloor()
  518.  
  519. #caballero 25
  520.  
  521. Gladius=Bladex.CreateEntity("RagnarGladius325","Garrote",0,0,0,"Weapon")
  522. ItemTypes.ItemDefaultFuncs(Gladius)
  523. escudo=Bladex.CreateEntity("RagnarEscudo325","Escudo2",0,0,0)
  524. ItemTypes.ItemDefaultFuncs(escudo)
  525.  
  526. pers=Bladex.CreateEntity("325kngt","Knight_Traitor",-97594.7030708, 6696.80320815, -89973.212,"Person")
  527. pers.Angle=5.13
  528. pers.Level=1
  529. pers.ActionAreaMin=pow(2,4)
  530. pers.ActionAreaMax=pow(2,5)
  531. EnemyTypes.EnemyDefaultFuncs(pers)
  532. #pers.Data.JoinGroup(pers.Name, "tras puente levadizo")
  533. Actions.TakeObject(pers.Name,"RagnarGladius325")
  534. Actions.TakeObject(pers.Name,"RagnarEscudo325")
  535. pers.SetOnFloor()
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544. ################
  545. ################
  546. #######en la torre despues de las flechas
  547. #########################################
  548. #caballero 227
  549.  
  550. Gladius=Bladex.CreateEntity("RagnarGladius227","Gladius",0,0,0,"Weapon")
  551. ItemTypes.ItemDefaultFuncs(Gladius)
  552. escudo=Bladex.CreateEntity("RagnarEscudo227","Escudo5",0,0,0)
  553. ItemTypes.ItemDefaultFuncs(escudo)
  554.  
  555. pers=Bladex.CreateEntity("227kngt","Knight_Traitor",-125646.106173, -6253.4934965, -91876.822,"Person")
  556. pers.Angle=3.07
  557. pers.Level=2
  558. pers.ActionAreaMin=pow(2,0)
  559. pers.ActionAreaMax=pow(2,1)
  560. EnemyTypes.EnemyDefaultFuncs(pers)
  561. #pers.Data.JoinGroup(pers.Name, "tras puente levadizo")
  562. Actions.TakeObject(pers.Name,"RagnarGladius227")
  563. Actions.TakeObject(pers.Name,"RagnarEscudo227")
  564. pers.SetOnFloor()
  565. darfuncs.HideBadGuy("227kngt")
  566.  
  567.  
  568. sen227kngt=Bladex.GetSector(-135500,-5500,-93000)
  569. sen227kngt.OnEnter=Aparece227kngt
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576. ################
  577. ################
  578. #######en la torre despues de Ragnar dando ordenes
  579. #########################################
  580. #caballero 228
  581.  
  582. Gladius=Bladex.CreateEntity("RagnarGladius228","Hacha",0,0,0,"Weapon")
  583. ItemTypes.ItemDefaultFuncs(Gladius)
  584. escudo=Bladex.CreateEntity("RagnarEscudo228","Escudo2",0,0,0)
  585. ItemTypes.ItemDefaultFuncs(escudo)
  586.  
  587. pers=Bladex.CreateEntity("228kngt","Knight_Traitor",-126507.637242, -12248.7607739, -94109.471,"Person")
  588. pers.Angle=3.4
  589. pers.Level=3
  590. pers.ActionAreaMin=pow(2,2)
  591. pers.ActionAreaMax=pow(2,3)
  592. EnemyTypes.EnemyDefaultFuncs(pers)
  593. #pers.Data.JoinGroup(pers.Name, "tras puente levadizo")
  594. Actions.TakeObject(pers.Name,"RagnarGladius228")
  595. Actions.TakeObject(pers.Name,"RagnarEscudo228")
  596. pers.SetOnFloor()
  597. darfuncs.HideBadGuy("228kngt")
  598.  
  599.  
  600. sen228kngt=Bladex.GetSector(-127727.850637, -12613.5904283, -110488.57)
  601. sen228kngt.OnEnter=Aparece228kngt
  602.